//
//  ViewD.h
//  drag
//
//  Created by 梁羽 on 2025/6/29.
//

#import <UIKit/UIKit.h>
#import <PDFKit/PDFKit.h>

NS_ASSUME_NONNULL_BEGIN

@interface ViewD : UIView
@property (nonatomic, strong) UIColor *lineColor;
@property (nonatomic, assign) CGFloat lineWidth;
@property (nonatomic, strong) NSArray<UIButton *> *endpointButtons;
@property (nonatomic, assign) CGPoint startPoint;
@property (nonatomic, assign) CGPoint endPoint;
@property (nonatomic, weak) PDFView *pdfView;
@property (nonatomic, assign) CGFloat pdfScaleFactor; // PDF的缩放因子
@property (nonatomic, assign) CGPoint panStartLocation;
@property (nonatomic, readonly) CGPoint lineStartPointInSuperview;
@property (nonatomic, readonly) CGPoint lineEndPointInSuperview;
@end

NS_ASSUME_NONNULL_END
